package com.okaixz.client.controller;


import com.okaixz.client.model.domain.AppUpgradeInfo;
import com.okaixz.client.service.IAppUpgradeInfoService;
import com.okaixz.common.client.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cdz
 * @since 2025-08-17
 */
@RestController
@RequestMapping("kb/app")
public class AppUpgradeInfoController {

    @Autowired
    private IAppUpgradeInfoService appUpgradeInfoService;

    @GetMapping("/upgrade/{clientname}")
    public Result<AppUpgradeInfo> getUpgradeInfo(@PathVariable String clientname){

        AppUpgradeInfo info=appUpgradeInfoService.getbyClientName(clientname);
        return Result.success(info);
    }

}
